Kernel.module.define('system', {
	
	title: 'system',
	file: 'system.php',
	icon: 'fa-system',
	
	init: function() {
		var module = this;

		$(':input').not('[type="checkbox"]').not('[type="reset"]').not('[type="submit"]').on('focus, click', function (e) {
			jsKeyboard.show();
			jsKeyboard.currentElement = $(this);
			jsKeyboard.currentElementCursorPosition = $(this).getCursorPosition();
			console.log('keyboard is now focused on ' + jsKeyboard.currentElement.attr('name') + ' at pos(' + jsKeyboard.currentElementCursorPosition + ')');
		});
	}
})
